import request from '@/utils/request'

// 用户登录
export function ApiLogin(data) {
  return request({
    url: '/member/member/login',
    headers: {
      isToken: false,
      repeatSubmit: false
    },
    method: 'post',
    data
  })
}
// 用户注册
export function ApiRegister(data) {
  return request({
    url: '/member/member/register',
    headers: {
      isToken: false
    },
    method: 'post',
    data
  })
}
// 获取用户信息
export function ApiGetInfo(params) {
  return request({
    url: '/member/member/getInfo',
    method: 'get',
    params
  })
}
// 退出登录
export function ApiLogOut(data) {
  return request({
    url: '/member/member/logout',
    method: 'post',
    data
  })
}
// 授权码
export function memberGetInfo(params) {
  return request({
    url: '/member/member/verifyCode',
    method: 'get',
    params
  })
}


